<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>最新会员 - 夜读书</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="图书(出售，借阅，交换，赠送)-夜读书">
    <meta name="keywords" content="夜读书，同城换书，图书，图书借阅，图书交换，图书赠送，图书出售，图书漂流">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')

<div id="ulist">
    <div class="tishi">
        <span class="">只显示最近注册的50位会员，更多会员交流请加入"夜读书书友会"qq群：194209072</span>
    </div> 
@foreach($users as $user)
    @if($user->sex == 1)
        <?php $sex = "images/ico/male.png"; ?>
    @endif
    @if($user->sex == 2)
        <?php $sex = "images/ico/female.png"; ?>
    @endif
    @if($user->sex == 3)
        <?php $sex = "images/ico/sex_unknow.png"; ?>
    @endif

    @if($user->avatar_file != null)
        <?php $touxiang = "http://www.yedushu.com/" . $user->avatar_file_min; ?>
    @else
        <?php $touxiang = "http://www.yedushu.com/usersface/default/avatar-min.png"; ?>
    @endif

    @if(Session::get('nameid') == $user->uid)
    <a href="{{url('mobile/myhome')}}" target="_blank">
    @else
    <a href="{{url('mobile/uhome/'. $user->uid)}}" target="_blank">
    @endif
    <div class="userinfo">
        <img class="bimg" style="float:left;" src="{{$touxiang}}"></img>
        <dl style="margin-left: 55px;">   
            <dt class="city"><span>{{$user->province}}{{$user->city}}</span></dt>
            <dt class="sex"><img src="{{url($sex)}}"></img>
                <span class="username">{{$user->user_name}}</span>
            </dt>
            <dt class="shopjieshao">
                @if($user->usersattribs == null || $user->usersattribs->signature == '')
                    <span>此人没有添加个性签名</span>
                @else
                    {{$user->usersattribs->signature}}
                @endif
            </dt>
        </dl>
        <div style="clear:both"></div>
    </div>
    </a>
@endforeach
{!! $users->render() !!}
</div>
@include('mobile.footer')
</body>
</html>